Integrand size = 41, antiderivative size = 179 \[ \int (a+a \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=-\frac {2 a (3 A+5 (B+C)) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 a (A+B+3 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 a (3 A+5 (B+C)) \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {2 a (A+B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2 a A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d} \]
[Out]
Time = 0.38 (sec) , antiderivative size = 179, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.171, Rules used = {4306, 3110, 3100, 2827, 2716, 2719, 2720} \[ \int (a+a \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\frac {2 a (3 A+5 (B+C)) \sin (c+d x) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 a (A+B+3 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}-\frac {2 a (3 A+5 (B+C)) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 a (A+B) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {2 a A \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{5 d} \]
[In]
[Out]
Rule 2716
Rule 2719
Rule 2720
Rule 2827
Rule 3100
Rule 3110
Rule 4306
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+a \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {7}{2}}(c+d x)} \, dx \\ & = \frac {2 a A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}-\frac {1}{5} \left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {-\frac {5}{2} a (A+B)-\frac {1}{2} a (3 A+5 (B+C)) \cos (c+d x)-\frac {5}{2} a C \cos ^2(c+d x)}{\cos ^{\frac {5}{2}}(c+d x)} \, dx \\ & = \frac {2 a (A+B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2 a A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}-\frac {1}{15} \left (4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {-\frac {3}{4} a (3 A+5 (B+C))-\frac {5}{4} a (A+B+3 C) \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx \\ & = \frac {2 a (A+B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2 a A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac {1}{3} \left (a (A+B+3 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx+\frac {1}{5} \left (a (3 A+5 (B+C)) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x)} \, dx \\ & = \frac {2 a (A+B+3 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 a (3 A+5 (B+C)) \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {2 a (A+B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2 a A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}-\frac {1}{5} \left (a (3 A+5 (B+C)) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx \\ & = -\frac {2 a (3 A+5 (B+C)) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 a (A+B+3 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 a (3 A+5 (B+C)) \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {2 a (A+B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2 a A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d} \\ \end{align*}
Time = 1.85 (sec) , antiderivative size = 147, normalized size of antiderivative = 0.82 \[ \int (a+a \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\frac {a \sqrt {\cos (c+d x)} (1+\cos (c+d x)) \sec ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {\sec (c+d x)} \left (-3 (3 A+5 (B+C)) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+5 (A+B+3 C) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+\frac {(15 (A+B+C)+10 (A+B) \cos (c+d x)+3 (3 A+5 (B+C)) \cos (2 (c+d x))) \sin (c+d x)}{2 \cos ^{\frac {5}{2}}(c+d x)}\right )}{15 d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(711\) vs. \(2(209)=418\).
Time = 90.76 (sec) , antiderivative size = 712, normalized size of antiderivative = 3.98
method | result | size |
default | \(\text {Expression too large to display}\) | \(712\) |
parts | \(\text {Expression too large to display}\) | \(902\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.12 (sec) , antiderivative size = 234, normalized size of antiderivative = 1.31 \[ \int (a+a \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\frac {-5 i \, \sqrt {2} {\left (A + B + 3 \, C\right )} a \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + 5 i \, \sqrt {2} {\left (A + B + 3 \, C\right )} a \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 3 i \, \sqrt {2} {\left (3 \, A + 5 \, B + 5 \, C\right )} a \cos \left (d x + c\right )^{2} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 3 i \, \sqrt {2} {\left (3 \, A + 5 \, B + 5 \, C\right )} a \cos \left (d x + c\right )^{2} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) + \frac {2 \, {\left (3 \, {\left (3 \, A + 5 \, B + 5 \, C\right )} a \cos \left (d x + c\right )^{2} + 5 \, {\left (A + B\right )} a \cos \left (d x + c\right ) + 3 \, A a\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{15 \, d \cos \left (d x + c\right )^{2}} \]
[In]
[Out]
Timed out. \[ \int (a+a \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int (a+a \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} {\left (a \cos \left (d x + c\right ) + a\right )} \sec \left (d x + c\right )^{\frac {7}{2}} \,d x } \]
[In]
[Out]
\[ \int (a+a \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} {\left (a \cos \left (d x + c\right ) + a\right )} \sec \left (d x + c\right )^{\frac {7}{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int (a+a \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {7}{2}}(c+d x) \, dx=\int {\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{7/2}\,\left (a+a\,\cos \left (c+d\,x\right )\right )\,\left (C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A\right ) \,d x \]
[In]
[Out]